package com.chensheng.dao;

import com.chensheng.model.SellerInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 下午 22:48 2018/5/18 0018
 */
@Mapper
public interface SellerInfoDAO {

    @Insert({"insert seller_info values(#{sellerId}, #{username}, #{password}, #{createTime}, #{updateTime})"})
    void insertOne(SellerInfo sellerInfo);

    @Select({"select * from seller_info where username=#{username}"})
    SellerInfo selectByUserName(@Param("username") String username);
}
